package com.sc.design.proxy.forceproxy;


public class GamePlayerProxy implements IGamePlayer {

    private IGamePlayer iGamePlayer = null;
    GamePlayerProxy(IGamePlayer player){
        iGamePlayer = player;
    }

    @Override
    public void killBoss() {
        this.iGamePlayer.killBoss();
    }

    @Override
    public void upgrade() {
        this.iGamePlayer.upgrade();
    }

    @Override
    public void login() {
        this.iGamePlayer.login();
    }

    @Override
    public IGamePlayer getProxy() {
        return this;
    }
}
